﻿using Commons;
using IdentityServer.Domain.IRepositories;
using IdentityServer.Domain.IServices;
using IdentityServer.Infrastructure.Repositories;
using IdentityServer.Infrastructure.Services;
using Microsoft.Extensions.DependencyInjection;

namespace IdentityServer.Infrastructure
{
    class ModuleInitializer : IModuleInitializer
    {
        public void Initialize(IServiceCollection services)
        {
            services.AddScoped<IdDomainService>();
            services.AddScoped<IIdRepository, IdRepository>();
            services.AddScoped<IEmailRepository, EmailRepository>();
            services.AddScoped<IEmailClient, QQEmailClient>();
            services.AddScoped<IWeChatRepository, WeChatRepository>();

        }
    }
}
